package day3


class Student{
  val id = 666
  var age:Int = 20
  private var name:String = "Tom"
  private[this] val pet = "小强"
}

object Student {
  def main(args: Array[String]): Unit = {
    val student = new Student()
    println(student.id)
    //student.id = 34
    println(student.age)
    student.age = 340
    println(student.name)
    student.name = "Jerry"


  }

}
